package com.why.search.Vo;

import com.why.to.SkuEsModel;
import lombok.Data;

import java.util.List;

/**
 * @program: why-gulimall
 * @description:
 * @author: @why
 * @create: 2021-06-04 09:48
 **/
public class SearchResult {
    //查询到的所有的商品信息
    private List<SkuEsModel> products;


    /**
     * 分页信息
     */
    //当前页码
    private Integer pageNum;
    //总记录数
    private Integer total;
    //总页码
    private Integer totalPages;


    //查询到的对应的检索数据的品牌信息
    private List<BrandVo> brands;

    //该查询参数，响应后所对应的分类 可能有多哥
    private List<CatalogVo> catalogs;

    //查询的结果所对应的属性
    private List<attrVo> attrs;











    @Data
    private static class BrandVo {
        private Long brandId;

        private String brandName;

        private String brandImg;
    }


    //查询到的商品能够涉及到的所有属性信息
    @Data
    private static class attrVo {
        private Long attrId;
        private String attrName;
        private List<String> attrValues;


    }

    //查询到的商品能够涉及到的所有分类信息
    @Data
    private static class CatalogVo {
        private Long catelogId;
        private String catelogName;

    }
}
